import * as actionTypes from "./constants";

const defaultstate = {
  mydata: []
};

const reducer = (state = defaultstate, action) => {
  switch (action.type) {
    case actionTypes.CHANGE_MYDATA:
      return { ...state, mydata: action.data };
    default:
      return state;
  }
};

export default reducer;
